package homework;

public class Domo6 {
    public static void main(String[] args) {
    for(int x =100;x<=999;x++){
        int ge=x%10;
        int shi=x/10%10;
        int bai=x/10/10%10;
        if(x==(ge*ge*ge+shi*shi*shi+bai*bai*bai)){
            System.out.println(x);
        }
    }
}
}
